<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CUdpBase类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="class_c_udp_base-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CUdpBase类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_udp_base_8h_source.html">UdpBase.h</a>&gt;</code></p>
<div class="dynheader">
类 CUdpBase 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_c_udp_base.png" usemap="#CUdpBase_map" alt=""/>
  <map id="CUdpBase_map" name="CUdpBase_map">
<area href="class_c_basic_service.html" title="服务类 基类" alt="CBasicService" shape="rect" coords="53,0,149,24"/>
<area href="class_c_udp_client.html" title="udp服务类，用于连接发送功能 固删除接收对端地址的读写函数，若要接收对端地址信息的读写需使用UdpServer类" alt="CUdpClient" shape="rect" coords="0,112,96,136"/>
<area href="class_c_udp_server.html" title="udp服务类，用于连接发送功能 固删除无对端地址的读写函数，若要连接发送功能请使用CUdpClint功能类" alt="CUdpServer" shape="rect" coords="106,112,202,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a5c7cde2ecd9ead7b5d0ad577163a6db1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a5c7cde2ecd9ead7b5d0ad577163a6db1">CUdpBase</a> (bool isWriteLog)</td></tr>
<tr class="separator:a5c7cde2ecd9ead7b5d0ad577163a6db1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7c3795c134f83c50a95aa013875c2f3"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#ac7c3795c134f83c50a95aa013875c2f3">~CUdpBase</a> ()</td></tr>
<tr class="separator:ac7c3795c134f83c50a95aa013875c2f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a615adef818eec9c6465fe5c7ff68ea3d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a615adef818eec9c6465fe5c7ff68ea3d">Init</a> (<a class="el" href="class_c_socket.html">CSocket</a> &amp;sock, bool isServer=false)=0</td></tr>
<tr class="memdesc:a615adef818eec9c6465fe5c7ff68ea3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">将sock与服务类绑定，一个socket只能绑定一个udp服务类  <a href="class_c_udp_base.html#a615adef818eec9c6465fe5c7ff68ea3d">更多...</a><br /></td></tr>
<tr class="separator:a615adef818eec9c6465fe5c7ff68ea3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c90c99cb091d60480807292b4b550ce"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a2c90c99cb091d60480807292b4b550ce">AsyncConnect</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)=0</td></tr>
<tr class="memdesc:a2c90c99cb091d60480807292b4b550ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个连接请求  <a href="class_c_udp_base.html#a2c90c99cb091d60480807292b4b550ce">更多...</a><br /></td></tr>
<tr class="separator:a2c90c99cb091d60480807292b4b550ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a32f4a3d3c6dcf2e596167c0388b9e8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a3a32f4a3d3c6dcf2e596167c0388b9e8">Post</a> (const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)=0</td></tr>
<tr class="memdesc:a3a32f4a3d3c6dcf2e596167c0388b9e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个中断请求  <a href="class_c_udp_base.html#a3a32f4a3d3c6dcf2e596167c0388b9e8">更多...</a><br /></td></tr>
<tr class="separator:a3a32f4a3d3c6dcf2e596167c0388b9e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9515a147896f2f4493407a03bb21c03"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#ae9515a147896f2f4493407a03bb21c03">Run</a> ()=0</td></tr>
<tr class="memdesc:ae9515a147896f2f4493407a03bb21c03"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行服务  <a href="class_c_udp_base.html#ae9515a147896f2f4493407a03bb21c03">更多...</a><br /></td></tr>
<tr class="separator:ae9515a147896f2f4493407a03bb21c03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd8f00554bbd461ddc245a8dbc12342b"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#abd8f00554bbd461ddc245a8dbc12342b">Run_One</a> ()=0</td></tr>
<tr class="memdesc:abd8f00554bbd461ddc245a8dbc12342b"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行一次服务  <a href="class_c_udp_base.html#abd8f00554bbd461ddc245a8dbc12342b">更多...</a><br /></td></tr>
<tr class="separator:abd8f00554bbd461ddc245a8dbc12342b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3278a0321a26d29983c080eebad9865e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a3278a0321a26d29983c080eebad9865e">NotifyStop</a> ()=0</td></tr>
<tr class="memdesc:a3278a0321a26d29983c080eebad9865e"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止  <a href="class_c_udp_base.html#a3278a0321a26d29983c080eebad9865e">更多...</a><br /></td></tr>
<tr class="separator:a3278a0321a26d29983c080eebad9865e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b617bf569035b349d5f9e3fa7c1062d"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a1b617bf569035b349d5f9e3fa7c1062d">IsStop</a> () const =0</td></tr>
<tr class="memdesc:a1b617bf569035b349d5f9e3fa7c1062d"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务是否停止  <a href="class_c_udp_base.html#a1b617bf569035b349d5f9e3fa7c1062d">更多...</a><br /></td></tr>
<tr class="separator:a1b617bf569035b349d5f9e3fa7c1062d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc3649c6c9856818532e9c2b47b16381"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#abc3649c6c9856818532e9c2b47b16381">WaitServerStop</a> ()=0</td></tr>
<tr class="memdesc:abc3649c6c9856818532e9c2b47b16381"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止并等待  <a href="class_c_udp_base.html#abc3649c6c9856818532e9c2b47b16381">更多...</a><br /></td></tr>
<tr class="separator:abc3649c6c9856818532e9c2b47b16381"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6768c0abfb54cce387c6b353b5e9dd0"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_io_port_service.html">CIoPortService</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#af6768c0abfb54cce387c6b353b5e9dd0">GetIoPortService</a> ()=0</td></tr>
<tr class="memdesc:af6768c0abfb54cce387c6b353b5e9dd0"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取底层服务类  <a href="class_c_udp_base.html#af6768c0abfb54cce387c6b353b5e9dd0">更多...</a><br /></td></tr>
<tr class="separator:af6768c0abfb54cce387c6b353b5e9dd0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个接收请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已连接的套接字 </td></tr>
    <tr><td class="paramname">buff</td><td>接收缓冲 </td></tr>
    <tr><td class="paramname">addr</td><td>接收的地址信息 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section remark"><dt>备注</dt><dd>CUdpClient删除AsyncRecvfrom函数，CUdpServer删除AsyncRead函数，上层若调用被删除的函数则不会触发任何操作 </dd></dl>
</div></td></tr>
<tr class="memitem:aeafb176079a0e2ef6201f38055e33872"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#aeafb176079a0e2ef6201f38055e33872">AsyncRecvfrom</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, <a class="el" href="class_c_sock_addr.html">CSockAddr</a> *addr, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)=0</td></tr>
<tr class="separator:aeafb176079a0e2ef6201f38055e33872"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ffbb760ed06200df0a7a1c2491e4f02"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a8ffbb760ed06200df0a7a1c2491e4f02">AsyncRead</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)=0</td></tr>
<tr class="separator:a8ffbb760ed06200df0a7a1c2491e4f02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个写请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已连接的套接字 </td></tr>
    <tr><td class="paramname">buff</td><td>发送缓冲 </td></tr>
    <tr><td class="paramname">addr</td><td>接收的地址信息 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section remark"><dt>备注</dt><dd>CUdpClient删除AsyncSendTo函数，CUdpServer删除AsyncSend函数，上层若调用被删除的函数则不会触发任何操作 </dd></dl>
</div></td></tr>
<tr class="memitem:ab4230b4e3f8b762451f49ec97efdc412"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#ab4230b4e3f8b762451f49ec97efdc412">AsyncSendTo</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, <a class="el" href="class_c_sock_addr.html">CSockAddr</a> *addr, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)=0</td></tr>
<tr class="separator:ab4230b4e3f8b762451f49ec97efdc412"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaa45e06d21d0ef2c3cdb965b4a62466"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#afaa45e06d21d0ef2c3cdb965b4a62466">AsyncSend</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)=0</td></tr>
<tr class="separator:afaa45e06d21d0ef2c3cdb965b4a62466"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_c_basic_service"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_c_basic_service')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_c_basic_service.html">CBasicService</a></td></tr>
<tr class="memitem:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_service.html#a73a67d340b0d83df8c02834ec89edc2b">CBasicService</a> ()</td></tr>
<tr class="memdesc:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个服务基类对象  <a href="class_c_basic_service.html#a73a67d340b0d83df8c02834ec89edc2b">更多...</a><br /></td></tr>
<tr class="separator:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_service.html#a772031ad3c140a387b8b1e4f7bc4bed5">~CBasicService</a> ()</td></tr>
<tr class="memdesc:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁一个服务基类对象  <a href="class_c_basic_service.html#a772031ad3c140a387b8b1e4f7bc4bed5">更多...</a><br /></td></tr>
<tr class="separator:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a14a97c2f7a8c0b4421cf81503b071d31"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a14a97c2f7a8c0b4421cf81503b071d31">DelTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)=0</td></tr>
<tr class="separator:a14a97c2f7a8c0b4421cf81503b071d31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63759990d87d12f87c1950290b54e8ee"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a63759990d87d12f87c1950290b54e8ee">UpdateTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)=0</td></tr>
<tr class="separator:a63759990d87d12f87c1950290b54e8ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f978d31627d822f09a185a3f1be5b77"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a2f978d31627d822f09a185a3f1be5b77">SetTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)=0</td></tr>
<tr class="separator:a2f978d31627d822f09a185a3f1be5b77"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:ab7a69d000d4b674aad70ece07db2c074"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#ab7a69d000d4b674aad70ece07db2c074">delete_class_copy_operator</a> (<a class="el" href="class_c_udp_base.html">CUdpBase</a>)</td></tr>
<tr class="separator:ab7a69d000d4b674aad70ece07db2c074"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f67f613a4d8e20ee122a21eb0006dfa"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a4f67f613a4d8e20ee122a21eb0006dfa">Init</a> (const char *name)</td></tr>
<tr class="memdesc:a4f67f613a4d8e20ee122a21eb0006dfa"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化服务类函数  <a href="class_c_udp_base.html#a4f67f613a4d8e20ee122a21eb0006dfa">更多...</a><br /></td></tr>
<tr class="separator:a4f67f613a4d8e20ee122a21eb0006dfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock">
<p class="definition">在文件 <a class="el" href="_udp_base_8h_source.html">UdpBase.h</a> 第 <a class="el" href="_udp_base_8h_source.html#l00011">11</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a5c7cde2ecd9ead7b5d0ad577163a6db1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c7cde2ecd9ead7b5d0ad577163a6db1">&#9670;&nbsp;</a></span>CUdpBase()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpBase::CUdpBase </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isWriteLog</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_base_8h_source.html">UdpBase.h</a> 第 <a class="el" href="_udp_base_8h_source.html#l00016">16</a> 行定义.</p>

</div>
</div>
<a id="ac7c3795c134f83c50a95aa013875c2f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7c3795c134f83c50a95aa013875c2f3">&#9670;&nbsp;</a></span>~CUdpBase()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual CUdpBase::~CUdpBase </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_base_8h_source.html">UdpBase.h</a> 第 <a class="el" href="_udp_base_8h_source.html#l00018">18</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a2c90c99cb091d60480807292b4b550ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c90c99cb091d60480807292b4b550ce">&#9670;&nbsp;</a></span>AsyncConnect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpBase::AsyncConnect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个连接请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>待连接的套接字 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section remark"><dt>备注</dt><dd>CUdpServer将会删掉此功能，上层若调用则不会触发任何操作 </dd></dl>

<p>在 <a class="el" href="class_c_udp_client.html#ac80cab21b298c0b99e810fd19e06a42b">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#aed63085d5b5beee5d179b8eeb5be664d">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="a8ffbb760ed06200df0a7a1c2491e4f02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ffbb760ed06200df0a7a1c2491e4f02">&#9670;&nbsp;</a></span>AsyncRead()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpBase::AsyncRead </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="class_c_udp_client.html#a09c194e8776369953eb427572972df48">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#ab3dc993e182247fb5305a71fb1e63bd1">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="aeafb176079a0e2ef6201f38055e33872"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeafb176079a0e2ef6201f38055e33872">&#9670;&nbsp;</a></span>AsyncRecvfrom()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpBase::AsyncRecvfrom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_sock_addr.html">CSockAddr</a> *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="class_c_udp_server.html#aeb69d95dd3123fd4f56d565a19fbec67">CUdpServer</a> , 以及 <a class="el" href="class_c_udp_client.html#a96c10005edd6a1e8fe4a727fddd0d425">CUdpClient</a> 内被实现.</p>

</div>
</div>
<a id="afaa45e06d21d0ef2c3cdb965b4a62466"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afaa45e06d21d0ef2c3cdb965b4a62466">&#9670;&nbsp;</a></span>AsyncSend()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpBase::AsyncSend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="class_c_udp_client.html#acbfb5c3d02d26c74940eb9c77a29fe48">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#ac49e37eb7fe3c4b0e722f9bc5d55cd82">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="ab4230b4e3f8b762451f49ec97efdc412"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4230b4e3f8b762451f49ec97efdc412">&#9670;&nbsp;</a></span>AsyncSendTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpBase::AsyncSendTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_sock_addr.html">CSockAddr</a> *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="class_c_udp_server.html#a304307c8af55a434f960791a3c038d23">CUdpServer</a> , 以及 <a class="el" href="class_c_udp_client.html#aecb1ef4ed9971bb418ae2e07f7852882">CUdpClient</a> 内被实现.</p>

</div>
</div>
<a id="ab7a69d000d4b674aad70ece07db2c074"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7a69d000d4b674aad70ece07db2c074">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpBase::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_base.html">CUdpBase</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a14a97c2f7a8c0b4421cf81503b071d31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14a97c2f7a8c0b4421cf81503b071d31">&#9670;&nbsp;</a></span>DelTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpBase::DelTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_basic_service.html#a84db55709c4a577a12879202e2788727">CBasicService</a>.</p>

<p>在 <a class="el" href="class_c_udp_client.html#aada20aa84fdb5b7983b89fa4f18b63df">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#a18883092a65b385806b3cb3552f56f38">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="af6768c0abfb54cce387c6b353b5e9dd0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6768c0abfb54cce387c6b353b5e9dd0">&#9670;&nbsp;</a></span>GetIoPortService()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_c_io_port_service.html">CIoPortService</a>* CUdpBase::GetIoPortService </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取底层服务类 </p>

<p>实现了 <a class="el" href="class_c_basic_service.html#a222fc33e3f8c202533a635effc639a42">CBasicService</a>.</p>

<p>在 <a class="el" href="class_c_udp_client.html#ab0da6a1f850abeb24aa3ef691a1dd8c1">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#a2ebcef4f1740e51441e89af47f89d2e5">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="a4f67f613a4d8e20ee122a21eb0006dfa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f67f613a4d8e20ee122a21eb0006dfa">&#9670;&nbsp;</a></span>Init() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_c_sock_error.html">CSockError</a> CUdpBase::Init </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>初始化服务类函数 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回CSockError::SUCC 失败返回相应的错误信息 </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>ipc(进程间通信)服务类使用此初始化函数，详细参见每个类函数说明 </dd></dl>

<p>实现了 <a class="el" href="class_c_basic_service.html#a26d8f3995a64c9539b006a36e63ed97c">CBasicService</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_base_8h_source.html">UdpBase.h</a> 第 <a class="el" href="_udp_base_8h_source.html#l00014">14</a> 行定义.</p>

</div>
</div>
<a id="a615adef818eec9c6465fe5c7ff68ea3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a615adef818eec9c6465fe5c7ff68ea3d">&#9670;&nbsp;</a></span>Init() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_c_sock_error.html">CSockError</a> CUdpBase::Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isServer</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>将sock与服务类绑定，一个socket只能绑定一个udp服务类 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>待绑定的套接字类 </td></tr>
    <tr><td class="paramname">isServer</td><td>初始化类型 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回SUCC，失败返回相应的错误码 </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>必须为false </dd></dl>

<p>实现了 <a class="el" href="class_c_basic_service.html#a10f49182ac18d619be9d5aefe9557413">CBasicService</a>.</p>

<p>在 <a class="el" href="class_c_udp_server.html#a5862a7fd4ea7b754552eedc19cfdaa53">CUdpServer</a> , 以及 <a class="el" href="class_c_udp_client.html#aebf05411c8a2938f71b20faa002fbe2a">CUdpClient</a> 内被实现.</p>

</div>
</div>
<a id="a1b617bf569035b349d5f9e3fa7c1062d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b617bf569035b349d5f9e3fa7c1062d">&#9670;&nbsp;</a></span>IsStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool CUdpBase::IsStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>服务是否停止 </p>
<dl class="section return"><dt>返回</dt><dd>停止服务返回true,未停止返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_basic_service.html#aa73a529376ac948b2328a8656fbddc9a">CBasicService</a>.</p>

<p>在 <a class="el" href="class_c_udp_client.html#ae07f629e082ecacf27ff0c91fa808ea5">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#a8963defe56982aaff79417667d23da96">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="a3278a0321a26d29983c080eebad9865e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3278a0321a26d29983c080eebad9865e">&#9670;&nbsp;</a></span>NotifyStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpBase::NotifyStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止 </p>

<p>实现了 <a class="el" href="class_c_basic_service.html#acf2dc523207064b2082b9e0791f5e88d">CBasicService</a>.</p>

<p>在 <a class="el" href="class_c_udp_client.html#aa018e3d31a656f08527d151120c27794">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#a926f304c91aa6e0d66e7fe7f3189f5e6">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="a3a32f4a3d3c6dcf2e596167c0388b9e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a32f4a3d3c6dcf2e596167c0388b9e8">&#9670;&nbsp;</a></span>Post()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpBase::Post </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个中断请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="class_c_udp_client.html#a8cb56c4554afb0fd36e69c60a1e04933">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#a57d65bbcd1d3593a1c82ac3765c67ca3">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="ae9515a147896f2f4493407a03bb21c03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9515a147896f2f4493407a03bb21c03">&#9670;&nbsp;</a></span>Run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool CUdpBase::Run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_basic_service.html#a91890f13733f60c53ef31024aa282fbb">CBasicService</a>.</p>

<p>在 <a class="el" href="class_c_udp_client.html#a9d65087deb9bfea428ff3bb615ce9954">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#a094ecc90a9e5cd326a58928bf48ce08c">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="abd8f00554bbd461ddc245a8dbc12342b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd8f00554bbd461ddc245a8dbc12342b">&#9670;&nbsp;</a></span>Run_One()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool CUdpBase::Run_One </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行一次服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true，失败返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_basic_service.html#ae5b289830e25be913e20bd0b596d53f3">CBasicService</a>.</p>

<p>在 <a class="el" href="class_c_udp_client.html#a23979cafab8a95298ec8c248e62c426c">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#aed8baba7d9895b6895d9624ee8cb1bf4">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="a2f978d31627d822f09a185a3f1be5b77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f978d31627d822f09a185a3f1be5b77">&#9670;&nbsp;</a></span>SetTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpBase::SetTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_basic_service.html#a697834720e8fea776f366a8207087fa6">CBasicService</a>.</p>

<p>在 <a class="el" href="class_c_udp_client.html#a7fc951a885bc9d3aab6ecdf0d1aa9273">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#aeb3e2cc49ab20aeaf396c40e28f58627">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="a63759990d87d12f87c1950290b54e8ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63759990d87d12f87c1950290b54e8ee">&#9670;&nbsp;</a></span>UpdateTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool CUdpBase::UpdateTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_basic_service.html#ab87e91381edc59c3118e3cfc89f82f76">CBasicService</a>.</p>

<p>在 <a class="el" href="class_c_udp_client.html#a81bcb7d38ad17b9bc6ee13677ab7e287">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#a007ed280c7fb7066bc957425e7dc746b">CUdpServer</a> 内被实现.</p>

</div>
</div>
<a id="abc3649c6c9856818532e9c2b47b16381"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc3649c6c9856818532e9c2b47b16381">&#9670;&nbsp;</a></span>WaitServerStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpBase::WaitServerStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止并等待 </p>
<dl class="section remark"><dt>备注</dt><dd>此操作将会清空未完成的io队列 </dd></dl>

<p>实现了 <a class="el" href="class_c_basic_service.html#a026feeca4952b0bd153af40f3d472b2f">CBasicService</a>.</p>

<p>在 <a class="el" href="class_c_udp_client.html#aa9ed7c2a6ef85dcbba25056ff6777363">CUdpClient</a> , 以及 <a class="el" href="class_c_udp_server.html#a2242ee6ccbb71fa768ba191c8a61f9a2">CUdpServer</a> 内被实现.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/socket/internal/<a class="el" href="_udp_base_8h_source.html">UdpBase.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
